cmake_minimum_required(VERSION 3.12)
project(FrameTest)

set(CMAKE_CXX_STANDARD 14)

#根据编译类型生成文件夹
if("${CMAKE_SIZEOF_VOID_P}" EQUAL "4")
    #32位机器
    set(USER_PLATFORM "Win32")
elseif("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
    #64位机器
    set(USER_PLATFORM "x64")
endif()

set(CMAKE_BUILD_RPATH ${CMAKE_SOURCE_DIR}/build)

set(LIB_OUT_PATH ${CMAKE_BUILD_RPATH}/lib_${USER_PLATFORM}_${CMAKE_BUILD_TYPE})
set(BIN_OUT_PATH ${CMAKE_BUILD_RPATH}/bin_${USER_PLATFORM}_${CMAKE_BUILD_TYPE})


#设置库文件后缀 用以区分debug和release ,release不进行修改
set(CMAKE_DEBUG_POSTFIX "d")


set(SOURCE_HEAD ${CMAKE_CURRENT_SOURCE_DIR}/include)
set(SOURCE_CPP  ${CMAKE_CURRENT_SOURCE_DIR}/src)

include_directories(
        ${SOURCE_HEAD}
#        ${SOURCE_HEAD}/CyberCommon
        ${SOURCE_CPP}
        )


add_subdirectory(src/CyberCommon)